package com.ruoyi.project.channel.businessInfo.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商家表 business_info
 *
 * @author zero
 * @date 2019-05-04
 */
public class BusinessInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 商家编号
     */
    private Long businessId;
    private String apiKey;
    /**
     * 商户id
     */
    private Long userId;
    /**
     * 商户id
     */
    private Long parentUserId;
    /**
     * 归属通道商
     */
    private Long channelUserId;
    private String businessType;
    private String salt;
    /**
     * 联系方式
     */
    private String contactType;
    /**
     * 联系号码
     */
    private String contactNo;
    /**
     * 费率
     */
    private BigDecimal channelRate;

    public BigDecimal getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }

    private BigDecimal orderPrice;
    /**
     * 状态（0正常 1停用）
     */
    private String status;
    /**
     * 支付密码
     */
    private String payPwd;
    /**
     * 登陆ip(设置白名单)
     */
    private String ip;
    /**
     * 邀请码
     */
    private String invitationCode;
    /**
     * 银行名称
     */
    private String bankName;
    /**
     * 银行卡号
     */
    private String bankNo;
    /**
     * 可抢单到期时间
     */
    private Date dueDate;
    /**
     * vip生效时间
     */
    private Date vipStartDate;
    /**
     *
     */
    private Integer levelId;
    /** 二级代理 */
    private Long secondParentUserId;
    /** 三级代理 */
    private Long thirdParentUserId;
    /** 根节点 */
    private Long rootUserId;
    /** 收件电话号码 */
    private String addressPhone;
    /** 收件人名 */
    private String addressUserName;
    /** 邮编 */
    private String addressCode;
    public void setContactType(String contactType) {
        this.contactType = contactType;
    }

    public String getContactType() {
        return contactType;
    }

    public void setContactNo(String contactNo) {
        this.contactNo = contactNo;
    }

    public String getContactNo() {
        return contactNo;
    }

    public void setChannelRate(BigDecimal channelRate) {
        this.channelRate = channelRate;
    }

    public BigDecimal getChannelRate() {
        return channelRate;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setPayPwd(String payPwd) {
        this.payPwd = payPwd;
    }

    public String getPayPwd() {
        return payPwd;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getIp() {
        return ip;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("businessId", getBusinessId())
                .append("userId", getUserId())
                .append("contactType", getContactType())
                .append("contactNo", getContactNo())
                .append("channelRate", getChannelRate())
                .append("status", getStatus())
                .append("payPwd", getPayPwd())
                .append("ip", getIp())
                .append("remark", getRemark())
                .append("updateTime", getUpdateTime())
                .append("createTime", getCreateTime())
                .append("invitationCode", getInvitationCode())
                .append("bankName", getBankName())
                .append("bankNo", getBankNo())
                .append("dueDate", getDueDate())
                .append("vipStartDate", getVipStartDate())
                .append("levelId", getLevelId())
                .toString();
    }

    public Long getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getParentUserId() {
        return parentUserId;
    }

    public void setParentUserId(Long parentUserId) {
        this.parentUserId = parentUserId;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public Long getChannelUserId() {
        return channelUserId;
    }

    public void setChannelUserId(Long channelUserId) {
        this.channelUserId = channelUserId;
    }

    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public void setInvitationCode(String invitationCode) {
        this.invitationCode = invitationCode;
    }

    public String getInvitationCode() {
        return invitationCode;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankNo(String bankNo) {
        this.bankNo = bankNo;
    }

    public String getBankNo() {
        return bankNo;
    }

    public void setDueDate(Date dueDate) {
        this.dueDate = dueDate;
    }

    public Date getDueDate() {
        return dueDate;
    }

    public void setVipStartDate(Date vipStartDate) {
        this.vipStartDate = vipStartDate;
    }

    public Date getVipStartDate() {
        return vipStartDate;
    }

    public void setLevelId(Integer levelId) {
        this.levelId = levelId;
    }

    public Integer getLevelId() {
        return levelId;
    }

    public Long getSecondParentUserId() {
        return secondParentUserId;
    }

    public void setSecondParentUserId(Long secondParentUserId) {
        this.secondParentUserId = secondParentUserId;
    }

    public Long getThirdParentUserId() {
        return thirdParentUserId;
    }

    public void setThirdParentUserId(Long thirdParentUserId) {
        this.thirdParentUserId = thirdParentUserId;
    }

    public Long getRootUserId() {
        return rootUserId;
    }

    public void setRootUserId(Long rootUserId) {
        this.rootUserId = rootUserId;
    }

    public String getAddressPhone() {
        return addressPhone;
    }

    public void setAddressPhone(String addressPhone) {
        this.addressPhone = addressPhone;
    }

    public String getAddressUserName() {
        return addressUserName;
    }

    public void setAddressUserName(String addressUserName) {
        this.addressUserName = addressUserName;
    }

    public String getAddressCode() {
        return addressCode;
    }

    public void setAddressCode(String addressCode) {
        this.addressCode = addressCode;
    }
}
